<script type="text/html" template>
    <link rel="stylesheet" href="{{ layui.setter.base }}style/declare.css?v={{ layui.setter.version }}" media="all"/>
</script>
<div class="child-box">
    <div class="layui-card layadmin-header">
        <div class="layui-breadcrumb" lay-filter="breadcrumb">
            <a href="javascript:" lay-href=""> <i class="iconfont iconhome"></i>首页</a>
            <a><cite>代理报关</cite></a>
            <a><cite>报关单详情</cite></a>
            <div class="layui-card-header-left" title="刷新" zmark-event="layui.manage.render">
                <i class="layui-icon layui-icon-refresh layui-anim" zmark-anim="layui-anim-rotate"></i>
            </div>
        </div>
    </div>
    <div class="layui-card mt20">
        <div class="layui-card-header">
                  <span class="def-fc">
                    <a href="javascript:" title="返回" class="head-go-back" onclick="history.back()"><i class="iconfont iconfanhui"></i></a>
                </span>
            <span class="def-fc">进口报关单</span>
            <a class="layui-btn layui-btn-xs fr mt10" href="javascript:" id="decDocBtn">查看随附单据</a>
        </div>
        <div class="layui-card-body form-disabled">
            <div class="layui-tab layui-tab-brief decl-tab" id="declTab" lay-filter="declTab" style="margin-top: -10px;">
                <ul class="layui-tab-title zm-hide">
                    <li class="layui-this" lay-id="declare">进口报关单</li>
                    <li lay-id="transit">转关运输申报单</li>
                </ul>
                <div class="layui-tab-content mb50">
                    <div class="layui-tab-item layui-show">
                        <div class="layui-row">
                            <div class="layui-col-sm12">
                                <form class="layui-form" id="decForm" method="post" lay-filter="decForm" onsubmit="return false">
                                    <input type="hidden" name="id" id="id" value=""/>
                                    <input type="hidden" name="cusIEFlag" id="cusIEFlag" value="I"/>
                                    <table class="dec-info">
                                        <tbody>
                                        <tr>
                                            <td colspan="3" class="label">客户名称</td>
                                            <td colspan="9">
                                                <input class="dec-input required auto-customer" name="customerName" id="customerName"/>
                                                <input type="hidden" name="customerId" id="customerId"/>
                                            </td>
                                            <td colspan="3" class="label">系统单号</td>
                                            <td colspan="3"><input class="dec-input disabled" readonly name="docNo" id="docNo"/></td>
                                            <td colspan="3" class="label">状态</td>
                                            <td colspan="3"><input class="dec-input disabled" readonly name="statusDesc" id="statusDesc"/></td>
                                        </tr>
                                        </tbody>
                                    </table>
                                    <table class="dec-info" style="margin-top: 4px;">
                                        <tbody>
                                        <tr>
                                            <td colspan="3" class="label">统一编号</td>
                                            <td colspan="9"><input class="dec-input disabled" readonly name="cusCiqNo" id="cusCiqNo"/></td>
                                            <td colspan="3" class="label">海关编号</td>
                                            <td colspan="9"><input class="dec-input disabled" readonly name="entryId" id="entryId"/></td>
                                        </tr>
                                        <tr>
                                            <td colspan="3" class="label">申报地海关</td>
                                            <td colspan="9">
                                                <input type="hidden" name="customMaster" id="customMaster"/>
                                                <input class="dec-input required" name="customMasterName" id="customMasterName"/>
                                            </td>
                                            <td colspan="3" class="label">进境关别</td>
                                            <td colspan="9">
                                                <input type="hidden" name="iePort" id="iePort"/>
                                                <input class="dec-input required" name="iePortName" id="iePortName"/>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td colspan="3" class="label">备案号</td>
                                            <td colspan="9"><input class="dec-input" name="manualNo" id="manualNo" placeholder="请输入12位备案号" maxlength="12"/></td>
                                            <td colspan="3" class="label">合同协议号</td>
                                            <td colspan="9"><input class="dec-input" name="contrNo" id="contrNo" maxlength="32"/></td>
                                        </tr>
                                        <tr>
                                            <td colspan="3" class="label">进口日期</td>
                                            <td colspan="9"><input class="dec-input required" name="ieDate" id="ieDate" maxlength="8" NUM/></td>
                                            <td colspan="3" class="label">申报日期</td>
                                            <td colspan="9"><input class="dec-input disabled" name="ddate" id="ddate" readonly/></td>
                                        </tr>
                                        <tr>
                                            <td colspan="3" class="label">境内收发货人</td>
                                            <td colspan="6"><input class="dec-input required" name="rcvgdTradeScc" id="rcvgdTradeScc" maxlength="18" placeholder="18位社会信用代码"/></td>
                                            <td colspan="3"><input class="dec-input required" name="rcvgdTradeCode" id="rcvgdTradeCode" maxlength="10" placeholder="10位海关代码"/></td>
                                            <td colspan="3"><input class="dec-input" name="consigneeCode" id="consigneeCode" maxlength="10" placeholder="10位检验检疫编码"/></td>
                                            <td colspan="9"><input class="dec-input required" name="consigneeCname" id="consigneeCname" maxlength="70" placeholder="企业名称(中文)"/></td>
                                        </tr>
                                        <tr>
                                            <td colspan="3" class="label">境外收发货人</td>
                                            <td colspan="12"><input class="dec-input" name="consignorCode" id="consignorCode" maxlength="50" placeholder="境外收发货人代码"/></td>
                                            <td colspan="9"><input class="dec-input required" name="consignorEname" id="consignorEname" maxlength="100" placeholder="企业名称(外文)"/></td>
                                        </tr>
                                        <tr>
                                            <td colspan="3" class="label">消费使用单位</td>
                                            <td colspan="6"><input class="dec-input required" name="ownerScc" id="ownerScc" maxlength="18" placeholder="18位社会信用代码"/></td>
                                            <td colspan="3"><input class="dec-input required" name="ownerCode" id="ownerCode" maxlength="10" placeholder="10位海关代码"/></td>
                                            <td colspan="3"><input class="dec-input" name="ownerCiqCode" id="ownerCiqCode" maxlength="10" placeholder="10位检验检疫编码"/></td>
                                            <td colspan="9"><input class="dec-input required" name="ownerName" id="ownerName" maxlength="70" placeholder="企业名称"/></td>
                                        </tr>
                                        <tr>
                                            <td colspan="3" class="label">申报单位</td>
                                            <td colspan="6"><input class="dec-input required" name="agentScc" id="agentScc" maxlength="18" placeholder="18位社会信用代码"/></td>
                                            <td colspan="3"><input class="dec-input required" name="agentCode" id="agentCode" maxlength="10" placeholder="10位海关代码"/></td>
                                            <td colspan="3"><input class="dec-input" name="agentCiqCode" id="agentCiqCode" maxlength="10" placeholder="10位检验检疫编码"/></td>
                                            <td colspan="9"><input class="dec-input required" name="agentName" id="agentName" maxlength="70" placeholder="企业名称"/></td>
                                        </tr>
                                        <tr>
                                            <td colspan="3" class="label">运输方式</td>
                                            <td colspan="3">
                                                <input type="hidden" name="cusTrafMode" id="cusTrafMode"/>
                                                <input class="dec-input required" name="cusTrafModeName" id="cusTrafModeName"/>
                                            </td>
                                            <td colspan="3" class="label">运输工具名称</td>
                                            <td colspan="3"><input class="dec-input" name="trafName" id="trafName" maxlength="50"/></td>
                                            <td colspan="3" class="label">航次号</td>
                                            <td colspan="9"><input class="dec-input" name="cusVoyageNo" id="cusVoyageNo" maxlength="32"/></td>
                                        </tr>
                                        <tr>
                                            <td colspan="3" class="label">提运单号</td>
                                            <td colspan="9"><input class="dec-input" name="billNo" id="billNo" maxlength="32"/></td>
                                            <td colspan="3" class="label">监管方式</td>
                                            <td colspan="3">
                                                <input type="hidden" name="supvModeCdde" id="supvModeCdde"/>
                                                <input class="dec-input required" name="supvModeCddeName" id="supvModeCddeName"/>
                                            </td>
                                            <td colspan="3" class="label">征免性质</td>
                                            <td colspan="3">
                                                <input type="hidden" name="cutMode" id="cutMode"/>
                                                <input class="dec-input" name="cutModeName" id="cutModeName"/>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td colspan="3" class="label">许可证号</td>
                                            <td colspan="3"><input class="dec-input" name="licenseNo" id="licenseNo" maxlength="20" onkeyup="formatLicenseNo(event)"/></td>
                                            <td colspan="3" class="label">启运国(地区)</td>
                                            <td colspan="3">
                                                <input type="hidden" name="cusTradeCountry" id="cusTradeCountry"/>
                                                <input class="dec-input required" name="cusTradeCountryName" id="cusTradeCountryName"/>
                                            </td>
                                            <td colspan="3" class="label">经停港</td>
                                            <td colspan="3">
                                                <input type="hidden" name="distinatePort" id="distinatePort"/>
                                                <input class="dec-input required" name="distinatePortName" id="distinatePortName"/>
                                            </td>
                                            <td colspan="3" class="label">成交方式</td>
                                            <td colspan="3">
                                                <input type="hidden" name="transMode" id="transMode"/>
                                                <input class="dec-input required" name="transModeName" id="transModeName"/>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td colspan="3" class="label">运费</td>
                                            <td colspan="1">
                                                <input type="hidden" name="feeMark" id="feeMark"/>
                                                <input class="dec-input required" name="feeMarkName" id="feeMarkName"/>
                                            </td>
                                            <td colspan="1">
                                                <input class="dec-input" name="feeRate" id="feeRate" NUM="4"/>
                                            </td>
                                            <td colspan="1">
                                                <input type="hidden" name="feeCurr" id="feeCurr"/>
                                                <input class="dec-input" name="feeCurrName" id="feeCurrName"/>
                                            </td>
                                            <td colspan="3" class="label">保险费</td>
                                            <td colspan="1">
                                                <input type="hidden" name="insurMark" id="insurMark"/>
                                                <input class="dec-input" name="insurMarkName" id="insurMarkName"/>
                                            </td>
                                            <td colspan="1">
                                                <input class="dec-input" name="insurRate" id="insurRate" NUM="4"/>
                                            </td>
                                            <td colspan="1">
                                                <input type="hidden" name="insurCurr" id="insurCurr"/>
                                                <input class="dec-input" name="insurCurrName" id="insurCurrName"/>
                                            </td>
                                            <td colspan="3" class="label">杂费</td>
                                            <td colspan="1">
                                                <input type="hidden" name="otherMark" id="otherMark"/>
                                                <input class="dec-input" name="otherMarkName" id="otherMarkName"/>
                                            </td>
                                            <td colspan="1">
                                                <input class="dec-input" name="otherRate" id="otherRate" NUM="4"/>
                                            </td>
                                            <td colspan="1">
                                                <input type="hidden" name="otherCurr" id="otherCurr"/>
                                                <input class="dec-input" name="otherCurrName" id="otherCurrName"/>
                                            </td>
                                            <td colspan="3" class="label">件数</td>
                                            <td colspan="3"><input class="dec-input required" name="packNo" id="packNo" NUM/></td>
                                        </tr>
                                        <tr>
                                            <td colspan="3" class="label">包装种类</td>
                                            <td colspan="6">
                                                <input type="hidden" name="wrapType" id="wrapType"/>
                                                <input class="dec-input required" name="wrapTypeName" id="wrapTypeName"/>
                                            </td>
                                            <td colspan="3">
                                                <input type="hidden" name="decOtherPacks" id="decOtherPacks" value=""/>
                                                <button type="button" class="layui-btn layui-btn-primary layui-btn-fluid layui-btn-xs" id="decOtherPackBtn">其他包装</button>
                                            </td>
                                            <td colspan="3" class="label">毛重(KG)</td>
                                            <td colspan="3"><input class="dec-input required" name="grossWt" id="grossWt" NUM="5"/></td>
                                            <td colspan="3" class="label">净重(KG)</td>
                                            <td colspan="3"><input class="dec-input required" name="netWt" id="netWt" NUM="5"/></td>
                                        </tr>
                                        <tr>
                                            <td colspan="3" class="label">贸易国别(地区)</td>
                                            <td colspan="3">
                                                <input type="hidden" name="cusTradeNationCode" id="cusTradeNationCode"/>
                                                <input class="dec-input required" name="cusTradeNationCodeName" id="cusTradeNationCodeName"/>
                                            </td>
                                            <td colspan="3" class="label">集装箱数</td>
                                            <td colspan="3">
                                                <input class="dec-input disabled" name="contaCount" id="contaCount" readonly/>
                                            </td>
                                            <td colspan="3" class="label">随附单证</td>
                                            <td colspan="9">
                                                <input class="dec-input disabled" name="attaDocuCdstr" id="attaDocuCdstr" readonly/>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td colspan="3" class="label">入境口岸</td>
                                            <td colspan="3">
                                                <input type="hidden" name="ciqEntyPortCode" id="ciqEntyPortCode"/>
                                                <input class="dec-input required" name="ciqEntyPortCodeName" id="ciqEntyPortCodeName"/>
                                            </td>
                                            <td colspan="3" class="label">货物存放地点</td>
                                            <td colspan="9">
                                                <input class="dec-input required" name="goodsPlace" id="goodsPlace" maxlength="100"/>
                                            </td>
                                            <td colspan="3" class="label">启运港</td>
                                            <td colspan="3">
                                                <input type="hidden" name="despPortCode" id="despPortCode"/>
                                                <input class="dec-input required" name="despPortCodeName" id="despPortCodeName"/>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td colspan="3" class="label">报关单类型	</td>
                                            <td colspan="3">
                                                <input type="hidden" name="entryType" id="entryType"/>
                                                <input class="dec-input required" name="entryTypeName" id="entryTypeName"/>
                                            </td>
                                            <td colspan="3" class="label">备注</td>
                                            <td colspan="12">
                                                <div class="flex">
                                                    <input class="dec-input" name="memo" id="memo" maxlength="255" enter="no" showLength="#memoLen"/>
                                                    <span class="gray-color t-a-c" style="width: 70px;">(<span id="memoLen">0</span>字节)</span>
                                                    <button type="button" class="round-btn blue" onclick="layui.trustDecDetail.showTextarea('#memo','备注')"><i class="iconfont iconshenglvehao1"></i></button>
                                                </div>
                                            </td>
                                            <td colspan="3"><button type="button" class="layui-btn layui-btn-primary layui-btn-fluid layui-btn-xs" id="promiseItemBtn">价格说明</button></td>
                                        </tr>
                                        <tr>
                                            <td colspan="3" class="label r-b-none t-a-l">
                                                <div class="flex">
                                                    <input type="text" class="dec-input" readonly style="max-width: 76%"/>
                                                    <button type="button" class="round-btn blue" show-element="#ciqTab"><i class="iconfont iconarrow-"></i></button>
                                                </div>
                                            </td>
                                            <td colspan="3"></td>
                                            <td colspan="3" class="label">标记唛码</td>
                                            <td colspan="12">
                                                <div class="flex">
                                                    <input class="dec-input" name="markNo" id="markNo" maxlength="400" showLength="#markNoLen" enter="no" value="N/M"/>
                                                    <span class="gray-color t-a-c" style="width: 70px;">(<span id="markNoLen">0</span>字节)</span>
                                                    <button type="button" class="round-btn blue" onclick="layui.trustDecDetail.showTextarea('#markNo','标记唛码')"><i class="iconfont iconshenglvehao1"></i></button>
                                                </div>
                                            </td>
                                            <td colspan="3"><button type="button" class="layui-btn layui-btn-primary layui-btn-fluid layui-btn-xs" id="cusRemarkBtn">业务事项</button></td>
                                        </tr>
                                        </tbody>
                                    </table>
                                    <table class="dec-info zm-hide" id="ciqTab" style="margin-top: -1px;">
                                        <tbody>
                                        <tr>
                                            <td colspan="3" class="label">检验检疫受理机关</td>
                                            <td colspan="9">
                                                <input type="hidden" name="orgCode" id="orgCode"/>
                                                <input class="dec-input required" name="orgCodeName" id="orgCodeName"/>
                                            </td>
                                            <td colspan="3" class="label">企业资质</td>
                                            <td colspan="3"><input class="dec-input disabled" name="entQualifTypeCodeS" id="entQualifTypeCodeS" readonly/></td>
                                            <td colspan="6">
                                                <div class="flex">
                                                    <input type="hidden" id="entQualifSeq" name="entQualifSeq"/>
                                                    <input class="dec-input disabled" name="entQualifTypeCodeSName" id="entQualifTypeCodeSName" readonly/>
                                                    <input type="hidden" id="preDecEntQualifList" name="preDecEntQualifList" value=""/>
                                                </div>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td colspan="3" class="label">领证机关</td>
                                            <td colspan="3">
                                                <input type="hidden" name="vsaOrgCode" id="vsaOrgCode"/>
                                                <input class="dec-input required" name="vsaOrgCodeName" id="vsaOrgCodeName"/>
                                            </td>
                                            <td colspan="3" class="label">口岸检验检疫机关</td>
                                            <td colspan="3">
                                                <input type="hidden" name="inspOrgCode" id="inspOrgCode"/>
                                                <input class="dec-input required" name="inspOrgCodeName" id="inspOrgCodeName"/>
                                            </td>
                                            <td colspan="3" class="label">启运日期</td>
                                            <td colspan="3">
                                                <input class="dec-input required picker-date" name="despDate" id="despDate" placeholder="请选择日期"/>
                                            </td>
                                            <td colspan="3" class="label">B/L号</td>
                                            <td colspan="3">
                                                <input class="dec-input" name="ciqBillNo" id="ciqBillNo" maxlength="50"/>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td colspan="3" class="label">目的地检验检疫机关</td>
                                            <td colspan="3">
                                                <input type="hidden" name="purpOrgCode" id="purpOrgCode"/>
                                                <input class="dec-input required" name="purpOrgCodeName" id="purpOrgCodeName"/>
                                            </td>
                                            <td colspan="3" class="label">关联号码及理由</td>
                                            <td colspan="6">
                                                <input class="dec-input" name="correlationDeclNo" id="correlationDeclNo" placeholder="关联号码" maxlength="500"/>
                                            </td>
                                            <td colspan="6">
                                                <input type="hidden" name="correlationReasonFlag" id="correlationReasonFlag"/>
                                                <input class="dec-input" name="correlationReasonFlagName" id="correlationReasonFlagName" placeholder="关联理由"/>
                                            </td>
                                            <td colspan="3">
                                                <input type="hidden" id="preDecUserList" name="preDecUserList" value=""/>
                                                <button type="button" class="layui-btn layui-btn-primary layui-btn-fluid layui-btn-xs" id="userInfoBtn">使用人</button>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td colspan="3" class="label">原箱运输</td>
                                            <td colspan="3">
                                                <input type="hidden" name="origBoxFlag" id="origBoxFlag"/>
                                                <input class="dec-input" name="origBoxFlagName" id="origBoxFlagName" enter="no"/>
                                            </td>
                                            <td colspan="3" class="label">特殊业务标识</td>
                                            <td colspan="3">
                                                <div class="flex">
                                                    <input class="dec-input disabled" id="specDeclFlagInput" readonly/>
                                                    <button type="button" class="round-btn blue" id="specDeclFlagBtn"><i class="iconfont iconshenglvehao1"></i></button>
                                                </div>
                                            </td>
                                            <td colspan="3" class="label">所需单证</td>
                                            <td colspan="6" class="r-b-none">
                                                <input class="dec-input disabled" name="appCertName" id="appCertName" readonly/>
                                            </td>
                                            <td colspan="3">
                                                <input type="hidden" id="decRequestCert" name="decRequestCert"/>
                                                <button type="button" class="layui-btn layui-btn-primary layui-btn-fluid layui-btn-xs" id="reqContentBtn">检验检疫签证要素</button>
                                            </td>
                                        </tr>
                                        </tbody>
                                    </table>
                                </form>
                                <div class="layui-row layui-form product-area" id="productArea">
                                    <div class="tab-normal tab-sm">
                                        <div class="layui-btn-group">
                                            <button type="button" class="layui-btn layui-btn-primary layui-btn-xs prohibit-btn" id="againProduct">查看归类</button>
                                        </div>
                                        <div id="product-area">
                                            <table class="layui-hide" id="product-list" lay-filter="product-tab"></table>
                                        </div>
                                        <form class="layui-form" id="productForm" method="post" lay-filter="productForm" onsubmit="return false">
                                            <input type="hidden" id="csc" name="csc"/>
                                            <input type="hidden" id="iaqr" name="iaqr"/>
                                            <!--检验检疫货物规格-->
                                            <input type="hidden" name="stuff" id="stuff"/>
                                            <input type="hidden" name="prodValidDt" id="prodValidDt"/>
                                            <input type="hidden" name="prodQgp" id="prodQgp"/>
                                            <input type="hidden" name="engManEntCnm" id="engManEntCnm"/>
                                            <input type="hidden" name="goodsSpec" id="goodsSpec"/>
                                            <input type="hidden" name="goodsModel" id="goodsModel"/>
                                            <input type="hidden" name="goodsBrand" id="goodsBrand"/>
                                            <input type="hidden" name="produceDate" id="produceDate"/>
                                            <input type="hidden" name="prodBatchNo" id="prodBatchNo"/>
                                            <input type="hidden" name="mnufctrRegNo" id="mnufctrRegNo"/>
                                            <input type="hidden" name="goodsLicence" id="goodsLicence"/>
                                            <!--危险货物信息-->
                                            <input type="hidden" name="noDangFlag" id="noDangFlag"/>
                                            <input type="hidden" name="noDangFlagName" id="noDangFlagName"/>
                                            <input type="hidden" name="unCode" id="unCode"/>
                                            <input type="hidden" name="dangName" id="dangName"/>
                                            <input type="hidden" name="packType" id="packType"/>
                                            <input type="hidden" name="packTypeName" id="packTypeName"/>
                                            <input type="hidden" name="packSpec" id="packSpec"/>

                                            <table class="product-info" style="margin-top: 4px;">
                                                <tbody>
                                                <tr>
                                                    <td colspan="1" class="label">项号</td>
                                                    <td colspan="1">
                                                        <input type="hidden" id="gNoTo" name="gNoTo"/>
                                                        <input class="dec-input required disabled" name="gno" id="gno" value="1" readonly/>
                                                    </td>
                                                    <td colspan="1" class="label">备案序号</td>
                                                    <td colspan="1"><input class="dec-input disabled" name="contrItem" id="contrItem" readonly/></td>
                                                    <td colspan="1" class="label">商品编号</td>
                                                    <td colspan="1"><input class="dec-input required auto-syn" name="codeTs" id="codeTs" maxlength="10" enter="no" NUM/></td>
                                                    <td colspan="1" class="label">检验检疫名称</td>
                                                    <td colspan="3">
                                                        <input type="hidden" class="dec-input" name="ciqCode" id="ciqCode"/>
                                                        <input class="dec-input auto-syn" name="ciqName" id="ciqName"/>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td colspan="1" class="label">商品名称</td>
                                                    <td colspan="3">
                                                        <input type="hidden" name="gename" id="gename"/>
                                                        <input class="dec-input required auto-syn" name="gname" id="gname" maxlength="255" enter="no"/>
                                                    </td>
                                                    <td colspan="1" class="label">规格型号</td>
                                                    <td colspan="5"><input class="dec-input required disabled" name="gspec" id="gspec" maxlength="255" readonly/></td>
                                                </tr>
                                                <tr>
                                                    <td colspan="1" class="label">成交数量</td>
                                                    <td colspan="1"><input class="dec-input required auto-syn" name="gqty" id="gqty" onfocus="setHistory(this)" onblur="tgqty()" maxlength="20" NUM="5"/></td>
                                                    <td colspan="1" class="label">成交计量单位</td>
                                                    <td colspan="1">
                                                        <input type="hidden" name="gunit" id="gunit"/>
                                                        <input class="dec-input required auto-syn" name="gunitName" id="gunitName"/>
                                                    </td>
                                                    <td colspan="1" class="label">单价</td>
                                                    <td colspan="1"><input class="dec-input required auto-syn" name="declPrice" id="declPrice" onblur="tdeclPrice()" maxlength="20" NUM="4"/></td>
                                                    <td colspan="1" class="label">总价</td>
                                                    <td colspan="1"><input class="dec-input required auto-syn" name="declTotal" id="declTotal" onblur="tdeclTotal()" maxlength="20" NUM="2"/></td>
                                                    <td colspan="1" class="label">币制</td>
                                                    <td colspan="1">
                                                        <input type="hidden" name="tradeCurr" id="tradeCurr"/>
                                                        <input class="dec-input required auto-syn" name="tradeCurrName" id="tradeCurrName"/>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td colspan="1" class="label">法定第一数量</td>
                                                    <td colspan="1"><input class="dec-input required auto-syn" name="qty1" id="qty1" onfocus="setHistory(this)" onblur="tqty1()" maxlength="20" NUM="5"/></td>
                                                    <td colspan="1" class="label">法定第一计量单位</td>
                                                    <td colspan="1">
                                                        <input type="hidden" name="unit1" id="unit1"/>
                                                        <input class="dec-input required disabled" name="unit1Name" id="unit1Name" readonly/>
                                                    </td>
                                                    <td colspan="1" class="label">加工成品单耗版本号</td>
                                                    <td colspan="1"><input class="dec-input auto-syn" name="exgVersion" id="exgVersion" maxlength="8"/></td>
                                                    <td colspan="1" class="label">货号	</td>
                                                    <td colspan="1"><input class="dec-input auto-syn" name="exgNo" id="exgNo" maxlength="30"/></td>
                                                    <td colspan="1" class="label">最终目的国(地区)</td>
                                                    <td colspan="1">
                                                        <input type="hidden" name="destinationCountry" id="destinationCountry"/>
                                                        <input class="dec-input required auto-syn" name="destinationCountryName" id="destinationCountryName"/>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td colspan="1" class="label">法定第二数量</td>
                                                    <td colspan="1"><input class="dec-input required disabled auto-syn" name="qty2" id="qty2" onfocus="setHistory(this)" onblur="tqty2()" maxlength="20" NUM="5" readonly/></td>
                                                    <td colspan="1" class="label">法定第二计量单位</td>
                                                    <td colspan="1">
                                                        <input type="hidden" name="unit2" id="unit2"/>
                                                        <input class="dec-input required disabled" name="unit2Name" id="unit2Name" readonly/>
                                                    </td>
                                                    <td colspan="1" class="label">原产国(地区)</td>
                                                    <td colspan="3">
                                                        <input type="hidden" name="cusOriginCountry" id="cusOriginCountry"/>
                                                        <input class="dec-input required auto-syn" name="cusOriginCountryName" id="cusOriginCountryName"/>
                                                    </td>
                                                    <td colspan="1" class="label">原产地区</td>
                                                    <td colspan="1">
                                                        <input type="hidden" name="origPlaceCode" id="origPlaceCode"/>
                                                        <input class="dec-input auto-syn" name="origPlaceCodeName" id="origPlaceCodeName"/>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td colspan="1" class="label r-b-none t-a-l">
                                                        <div class="flex">

                                                        </div>
                                                    </td>
                                                    <td colspan="1"></td>
                                                    <td colspan="1" class="label">境内目的地</td>
                                                    <td colspan="2">
                                                        <input type="hidden" name="districtCode" id="districtCode"/>
                                                        <input class="dec-input required auto-syn" name="districtCodeName" id="districtCodeName" placeholder="境内目的地代码"/>
                                                    </td>
                                                    <td colspan="3">
                                                        <input type="hidden" name="ciqDestCode" id="ciqDestCode"/>
                                                        <input class="dec-input required auto-syn" name="ciqDestCodeName" id="ciqDestCodeName" placeholder="目的地代码"/>
                                                    </td>
                                                    <td colspan="1" class="label">征免方式</td>
                                                    <td colspan="1">
                                                        <input type="hidden" name="dutyMode" id="dutyMode"/>
                                                        <input class="dec-input required" name="dutyModeName" id="dutyModeName" enter="no"/>
                                                    </td>
                                                </tr>
                                                </tbody>
                                            </table>
                                            <table class="product-info zm-hide" style="margin-top: -1px;" id="productCiq">
                                                <tbody>
                                                <tr>
                                                    <td colspan="1" class="label">检验检疫货物规格</td>
                                                    <td colspan="8">
                                                        <div class="flex">
                                                            <input class="dec-input disabled" name="goodsTargetInput" id="goodsTargetInput" readonly/>
                                                            <button type="button" class="round-btn blue" id="goodsTargetBtn"><i class="iconfont iconshenglvehao1"></i></button>
                                                        </div>
                                                    </td>
                                                    <td colspan="1"><button type="button" class="layui-btn layui-btn-primary layui-btn-fluid layui-btn-xs" id="goodsLicenceBtn">产品资质</button></td>
                                                </tr>
                                                <tr>
                                                    <td colspan="1" class="label">货物属性</td>
                                                    <td colspan="4">
                                                        <div class="flex">
                                                            <input type="hidden" name="goodsAttr" id="goodsAttr" readonly/>
                                                            <input class="dec-input disabled" name="goodsAttrName" id="goodsAttrName" readonly/>
                                                            <button type="button" class="round-btn blue" id="goodsAttrBtn"><i class="iconfont iconshenglvehao1"></i></button>
                                                        </div>
                                                    </td>
                                                    <td colspan="1" class="label">用途</td>
                                                    <td colspan="3">
                                                        <input type="hidden" name="purpose" id="purpose"/>
                                                        <input class="dec-input required" name="purposeName" id="purposeName" enter="no"/>
                                                    </td>
                                                    <td colspan="1"><button type="button" class="layui-btn layui-btn-primary layui-btn-fluid layui-btn-xs" id="dangerBtn">危险货物信息</button></td>
                                                </tr>
                                                </tbody>
                                            </table>
                                        </form>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="layui-tab-item">
                        <form class="layui-form" id="trnHeadForm" method="post" lay-filter="trnHeadForm" onsubmit="return false">
                            <div class="layui-row">
                                <div class="layui-card dec-card">
                                    <div class="layui-card-header">转关运输提前报关申报</div>
                                    <div class="layui-card-body">
                                        <table class="dec-info">
                                            <tbody>
                                            <tr>
                                                <td colspan="1" class="label">转关申报单号</td>
                                                <td colspan="2">
                                                    <input class="dec-input disabled" name="trnPreId" id="trnPreId" readonly/>
                                                </td>
                                                <td colspan="1" class="label">转关类型</td>
                                                <td colspan="2">
                                                    <input type="hidden" name="transFlag" id="transFlag"/>
                                                    <input class="dec-input required" name="transFlagName" id="transFlagName"/>
                                                </td>
                                                <td colspan="1" class="label">境内运输方式</td>
                                                <td colspan="2">
                                                    <input type="hidden" name="inbordTrafMode" id="inbordTrafMode"/>
                                                    <input class="dec-input required" name="inbordTrafModeName" id="inbordTrafModeName"/>
                                                </td>
                                                <td colspan="1" class="label">预计抵运日期</td>
                                                <td colspan="2">
                                                    <input class="dec-input picker-simple-date required" name="validDate" id="validDate" placeholder="YYYYMMDD" NUM maxlength="8"/>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td colspan="1" class="label">境内运输工具编号</td>
                                                <td colspan="2">
                                                    <input class="dec-input" name="inbordTrspmcNo" id="inbordTrspmcNo" maxlength="13"/>
                                                </td>
                                                <td colspan="1" class="label">境内运输工具名称</td>
                                                <td colspan="2">
                                                    <input class="dec-input" name="inbordTrspmcName" id="inbordTrspmcName" maxlength="50"/>
                                                </td>
                                                <td colspan="1" class="label">境内运输工具航次</td>
                                                <td colspan="2">
                                                    <input class="dec-input" name="inbordTrspmcVygNo" id="inbordTrspmcVygNo" maxlength="32"/>
                                                </td>
                                                <td colspan="1" class="label">转关单申报类型</td>
                                                <td colspan="2">
                                                    <input type="hidden" name="transType" id="transType"/>
                                                    <input class="dec-input required" name="transTypeName" id="transTypeName"/>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td colspan="1" class="label">是否启用电子关锁</td>
                                                <td colspan="2">
                                                    <input type="hidden" name="esealFlag" id="esealFlag"/>
                                                    <input class="dec-input required" name="esealFlagName" id="esealFlagName"/>
                                                </td>
                                                <td colspan="1" class="label">载货清单号</td>
                                                <td colspan="2">
                                                    <input class="dec-input" name="transNo" id="transNo" maxlength="16"/>
                                                </td>
                                                <td colspan="1" class="label">备注</td>
                                                <td colspan="5">
                                                    <input class="dec-input" name="note" id="note" maxlength="800"/>
                                                </td>
                                            </tr>
                                            </tbody>
                                        </table>
                                    </div>
                                </div>
                            </div>
                            <div class="layui-row">
                                <div class="layui-card dec-card">
                                    <div class="layui-card-header">提运单信息</div>
                                    <div class="layui-card-body">
                                        <table class="dec-info">
                                            <tbody>
                                            <tr>
                                                <td colspan="1" class="label">提运单序号</td>
                                                <td colspan="2">
                                                    <input class="dec-input disabled" name="billSeqNo" id="billSeqNo" value="1" readonly/>
                                                </td>
                                                <td colspan="1" class="label">运输工具编号</td>
                                                <td colspan="2">
                                                    <input class="dec-input" name="trafNo" id="trafNo" maxlength="32"/>
                                                </td>
                                                <td colspan="1" class="label">船舶名称</td>
                                                <td colspan="2">
                                                    <input class="dec-input" name="shipNameEn" id="shipNameEn" maxlength="50"/>
                                                </td>
                                                <td colspan="1" class="label">航次</td>
                                                <td colspan="2">
                                                    <input class="dec-input" name="tcusVoyageNo" id="tcusVoyageNo" maxlength="32"/>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td colspan="1" class="label">提单号</td>
                                                <td colspan="5">
                                                    <input class="dec-input" name="tbillNo" id="tbillNo" maxlength="32"/>
                                                </td>
                                                <td colspan="1" class="label">集装箱数</td>
                                                <td colspan="2">
                                                    <input class="dec-input disabled" name="tcontaCount" id="tcontaCount" readonly/>
                                                </td>
                                                <td colspan="1" class="label">进出境日期	</td>
                                                <td colspan="2">
                                                    <input class="dec-input picker-date" name="tiEdate" id="tiEdate" placeholder="请选择日期" enter="no"/>
                                                </td>
                                            </tr>
                                            </tbody>
                                        </table>
                                    </div>
                                </div>
                            </div>
                        </form>
                        <div class="layui-row">
                            <div class="layui-card dec-card">
                                <div class="layui-card-header">集装箱信息</div>
                                <div class="layui-card-body tab-normal">
                                    <div class="layui-btn-group">
                                        <button type="button" class="layui-btn layui-btn-primary layui-btn-xs prohibit-btn" id="newTrnContainer">新增</button>
                                        <button type="button" class="layui-btn layui-btn-primary layui-btn-xs prohibit-btn" id="copyTrnContainer">复制</button>
                                        <button type="button" class="layui-btn layui-btn-primary layui-btn-xs prohibit-btn" id="delTrnContainer">删除</button>
                                    </div>
                                    <div class="layui-row" id="trn-list-area">
                                        <table class="layui-hide" id="trn-container-list" lay-filter="trn-container-tab"></table>
                                    </div>
                                    <form class="layui-form" id="trnListForm" method="post" lay-filter="trnListForm" onsubmit="return false">
                                        <table class="dec-info" style="margin-top: -1px;">
                                            <tbody>
                                            <tr>
                                                <td colspan="1" class="label">集装箱号</td>
                                                <td colspan="2">
                                                    <input type="hidden" id="tcontSeqNo" name="contSeqNo"/>
                                                    <input class="dec-input required" name="containerNo" id="tcontainerNo" maxlength="11"/>
                                                </td>
                                                <td colspan="1" class="label">关锁号</td>
                                                <td colspan="2">
                                                    <input class="dec-input" name="sealNo" id="sealNo" maxlength="12"/>
                                                </td>
                                                <td colspan="1" class="label">关锁个数</td>
                                                <td colspan="2">
                                                    <input class="dec-input" name="sealQty" id="sealQty" maxlength="4"/>
                                                </td>
                                                <td colspan="2" class="label">运输工具实际重量(Kg)</td>
                                                <td colspan="2">
                                                    <input class="dec-input" name="transWeight" id="transWeight" maxlength="10" NUM="4"/>
                                                </td>
                                                <td colspan="1" class="label">规格代码</td>
                                                <td colspan="2">
                                                    <input type="hidden" name="containerMdCode" id="tcontainerMdCode"/>
                                                    <input class="dec-input" name="containerMdCodeName" id="tcontainerMdCodeName"/>
                                                </td>
                                                <td colspan="2" class="label">境内运输工具名称</td>
                                                <td colspan="2">
                                                    <input class="dec-input" name="inbordTransName" id="inbordTransName" maxlength="50" enter="no"/>
                                                </td>
                                            </tr>
                                            </tbody>
                                        </table>
                                    </form>
                                </div>
                            </div>
                        </div>
                        <div class="layui-row">
                            <div class="layui-col-sm5" style="padding-right: 8px;">
                                <div class="layui-card dec-card">
                                    <div class="layui-card-header">商品信息显示</div>
                                    <div class="layui-card-body tab-normal">
                                        <div class="layui-row" style="margin-top: -10px;">
                                            <table class="layui-hide" id="trn-product-list"></table>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class="layui-col-sm7">
                                <div class="layui-card dec-card">
                                    <div class="layui-card-header">集装箱与商品关系</div>
                                    <div class="layui-card-body tab-normal">
                                        <div class="layui-btn-group">
                                            <button type="button" class="layui-btn layui-btn-primary layui-btn-xs prohibit-btn" id="newTrnGoContainer">新增</button>
                                            <button type="button" class="layui-btn layui-btn-primary layui-btn-xs prohibit-btn" id="copyTrnGoContainer">复制</button>
                                            <button type="button" class="layui-btn layui-btn-primary layui-btn-xs prohibit-btn" id="delTrnGoContainer">删除</button>
                                        </div>
                                        <div class="layui-row" id="trn-goods-area">
                                            <table class="layui-hide" id="trn-conta-goods-list" lay-filter="trn-conta-goods-tab"></table>
                                        </div>
                                        <form class="layui-form" id="trnListGoodsForm" method="post" lay-filter="trnListGoodsForm" onsubmit="return false">
                                            <table class="dec-info" style="margin-top: -1px;">
                                                <tbody>
                                                <tr>
                                                    <td colspan="1" class="label">商品序号</td>
                                                    <td colspan="2">
                                                        <input type="hidden" id="gcSeqNo" name="gcSeqNo"/>
                                                        <input class="dec-input required" name="gno" id="ggno" maxlength="10" NUM/>
                                                    </td>
                                                    <td colspan="2" class="label">集装箱序号</td>
                                                    <td colspan="2">
                                                        <input class="dec-input required" name="contSeqNo" id="gcontSeqNo" maxlength="10" NUM/>
                                                    </td>
                                                    <td colspan="1" class="label">商品件数</td>
                                                    <td colspan="2">
                                                        <input class="dec-input" name="contaGoodsCount" id="contaGoodsCount" maxlength="10" NUM/>
                                                    </td>
                                                    <td colspan="2" class="label">商品毛重(Kg)</td>
                                                    <td colspan="2">
                                                        <input class="dec-input" name="contaGoodsWeight" id="contaGoodsWeight" NUM="5" enter="no"/>
                                                    </td>
                                                </tr>
                                                </tbody>
                                            </table>
                                        </form>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<div id="promiseItemArea" class="zm-hide">
    <form class="layui-form layui-form-pane" id="promiseItemForm" method="post" lay-filter="promiseItemForm" onsubmit="return false">
        <div class="layui-row" style="padding: 20px 10px 10px 10px">
            <div class="layui-form-item label-w-240">
                <label class="layui-form-label t-a-r">特殊关系确认</label>
                <div class="layui-input-block">
                    <input type="hidden" name="promiseItem1" id="promiseItem1"/>
                    <input type="text" class="layui-input" name="promise1Name" readonly style="height: 32px"/>
                </div>
            </div>
            <div class="layui-form-item label-w-240 mt10">
                <label class="layui-form-label t-a-r">价格影响确认</label>
                <div class="layui-input-block">
                    <input type="hidden" name="promiseItem2" id="promiseItem2"/>
                    <input type="text" class="layui-input" name="promise2Name" readonly style="height: 32px"/>
                </div>
            </div>
            <div class="layui-form-item label-w-240 mt10">
                <label class="layui-form-label t-a-r">与货物有关的特许权使用费支付确认</label>
                <div class="layui-input-block">
                    <input type="hidden" name="promiseItem3" id="promiseItem3"/>
                    <input type="text" class="layui-input" name="promise3Name" readonly style="height: 32px"/>
                </div>
            </div>
            <div class="layui-form-item label-w-240 mt10">
                <label class="layui-form-label t-a-r">公式定价确认</label>
                <div class="layui-input-block">
                    <input type="hidden" name="promiseItem4" id="promiseItem4"/>
                    <input type="text" class="layui-input" name="promise4Name" id="promise4Name"/>
                </div>
            </div>
            <div class="layui-form-item label-w-240 mt10">
                <label class="layui-form-label t-a-r">暂定价格确认</label>
                <div class="layui-input-block">
                    <input type="hidden" name="promiseItem5" id="promiseItem5"/>
                    <input type="text" class="layui-input" name="promise5Name" id="promise5Name"/>
                </div>
            </div>
        </div>
    </form>
</div>
<div id="cusRemarkArea" class="zm-hide">
    <form class="layui-form layui-form-pane" id="cusRemarkForm" method="post" lay-filter="cusRemarkForm" onsubmit="return false">
        <div class="layui-row" style="padding: 20px 10px 10px 10px">
            <input type="checkbox" name="taxPaperless" id="taxPaperless" lay-skin="primary" title="税单无纸化"/>
            <input type="checkbox" name="independentTax" id="independentTax" lay-skin="primary" title="自主报税" lay-filter="independentTax"/>
            <input type="checkbox" name="cusRemark1" id="cusRemark1" lay-skin="primary" title="自报自缴" lay-filter="cusRemark1"/>
            <input type="checkbox" name="cusRemark6" id="cusRemark6" lay-skin="primary" title="担保验放"/>
            <input type="checkbox" name="cusRemark7" id="cusRemark7" lay-skin="primary" title="跨境电商海外仓"/>
        </div>
    </form>
</div>
<div id="specDeclFlagArea" class="zm-hide">
    <form class="layui-form layui-form-pane" id="specDeclFlagForm" method="post" lay-filter="specDeclFlagForm" onsubmit="return false">
        <div class="layui-row" style="padding: 20px 10px 10px 10px">
            <input type="checkbox" name="specDeclFlag1" id="specDeclFlag1" lay-skin="primary" title="国际赛事"/>
            <input type="checkbox" name="specDeclFlag2" id="specDeclFlag2" lay-skin="primary" title="特殊进出军工物资"/>
            <input type="checkbox" name="specDeclFlag3" id="specDeclFlag3" lay-skin="primary" title="国际援助物资"/>
            <input type="checkbox" name="specDeclFlag4" id="specDeclFlag4" lay-skin="primary" title="国际会议"/>
            <input type="checkbox" name="specPassFlag1" id="specPassFlag1" lay-skin="primary" title="直通放行"/>
            <input type="checkbox" name="specPassFlag3" id="specPassFlag3" lay-skin="primary" title="外交礼遇"/>
            <input type="checkbox" name="specPassFlag4" id="specPassFlag4" lay-skin="primary" title="转关"/>
        </div>
    </form>
</div>
<div id="enterpriseContentArea" class="zm-hide">
    <form class="layui-form" id="enterpriseContentForm" method="post" lay-filter="enterpriseContentForm" onsubmit="return false">
        <table class="row-info info-lg">
            <tbody>
            <tr>
                <td colspan="1" class="label">企业资质类别</td>
                <td colspan="2">
                    <input type="hidden" name="entQualifTypeCode" id="entQualifTypeCode"/>
                    <input class="dec-input required" name="entQualifTypeName" id="entQualifTypeName"/>
                </td>
                <td colspan="1" class="label">企业资质编号</td>
                <td colspan="2">
                    <input class="dec-input" name="entQualifNo" id="entQualifNo" maxlength="40" enter="no"/>
                </td>
            </tr>
            </tbody>
        </table>
    </form>
    <div class="layui-btn-group" style="padding: 4px;">
        <button type="button" class="layui-btn layui-btn-primary layui-btn-xs prohibit-btn" id="addEcBtn">新增</button>
        <button type="button" class="layui-btn layui-btn-primary layui-btn-xs prohibit-btn" id="saveEcBtn">保存</button>
        <button type="button" class="layui-btn layui-btn-primary layui-btn-xs prohibit-btn" id="delEcBtn">删除</button>
    </div>
    <div class="tab-normal mt-10">
        <table class="layui-hide" id="enterprise-content-list" lay-filter="enterprise-content-tab"></table>
    </div>
    <div class="layui-row layui-form t-a-c mt10 checkbox-red">
        <input type="checkbox" id="isCopPromiseCheckbox" lay-skin="primary" title="企业承诺：本单位持有海关要求的合格保证、标签标识及其他证明声明材料，知悉相关材料内容，保证符合法律法规要求，并自存留档。"/>
    </div>
</div>
<div id="userInfoArea" class="zm-hide">
    <div class="tab-normal tab-sm">
        <table class="layui-hide" id="user-info-list" lay-filter="user-info-list"></table>
    </div>
</div>
<div id="classifyArea" class="zm-hide">
    <form class="layui-form" id="classifyForm" method="post" lay-filter="classifyForm" onsubmit="return false">
        <table class="row-info info-lg first-lg">
            <tbody>
            <tr>
                <td colspan="1" class="label">商品信息</td>
                <td colspan="3"><input class="dec-input" id="selectCodeTs" name="selectCodeTs" readonly/></td>
            </tr>
            <tr>
                <td colspan="1" class="label">商品名称</td>
                <td colspan="3"><input class="dec-input" id="goodsName" name="goodsName" readonly/></td>
            </tr>
            </tbody>
        </table>
        <table class="row-info info-lg first-lg" style="margin-top: -1px;">
            <tbody>
            <tr>
                <td colspan="1" class="label">品牌类型</td>
                <td colspan="2">
                    <input type="hidden" class="dec-input" id="brandTypeCode" name="elementVal" />
                    <input class="dec-input" id="brandType" readonly/>
                </td>
            </tr>
            <tr>
                <td colspan="1" class="label">出口享惠情况</td>
                <td colspan="2">
                    <input type="hidden" class="dec-input" id="expDiscountCode" name="elementVal" />
                    <input class="dec-input" id="expDiscount" readonly/>
                </td>
            </tr>
            </tbody>
        </table>
        <div id="elementView" style="margin-top: -1px;"></div>
        <table class="row-info info-lg first-lg" style="margin-top: -1px;">
            <tbody>
            <tr>
                <td colspan="1" class="label">规格型号</td>
                <td colspan="2">
                    <div class="flex">
                        <input class="dec-input disabled" name="elementstr" id="elementstr" readonly/>
                        <span class="gray-color t-a-c" style="width: 70px;">(<span id="elementsLen">0</span>字节)</span>
                    </div>
                </td>
            </tr>
            </tbody>
        </table>
    </form>
</div>
<div id="declPriceOrTotalArea" class="zm-hide t-a-c" style="padding: 20px 30px">
    <form class="layui-form" method="post" onsubmit="return false">
        <button type="submit" class="layui-btn layui-btn-lg layui-btn-primary layui-btn-radius focus-select" id="selectDeclPrice">修改单价</button>
        <button type="submit" class="layui-btn layui-btn-lg layui-btn-primary layui-btn-radius focus-select" id="selectDeclTotal">修改总价</button>
    </form>
</div>
<div id="decDocContentArea" class="zm-hide">
    <div class="tab-normal tab-sm">
        <table class="layui-hide" id="doc-content-list" lay-filter="doc-content-tab"></table>
    </div>
</div>
<div id="batchEditArea" class="zm-hide">
    <form class="layui-form p-10" id="batchEditForm" method="post" lay-filter="batchEditForm" onsubmit="return false">
        <table class="row-info info-lg">
            <tbody>
            <tr>
                <td colspan="1" class="label">币制</td>
                <td colspan="2">
                    <input type="hidden" name="btradeCurr" id="btradeCurr"/>
                    <input class="dec-input" name="btradeCurrName" id="btradeCurrName"/>
                </td>
            </tr>
            <tr>
                <td colspan="1" class="label">原产国(地区)</td>
                <td colspan="2">
                    <input type="hidden" name="bcusOriginCountry" id="bcusOriginCountry"/>
                    <input class="dec-input" name="bcusOriginCountryName" id="bcusOriginCountryName"/>
                </td>
            </tr>
            <tr>
                <td colspan="1" class="label">境内目的地</td>
                <td colspan="2">
                    <input type="hidden" name="bdistrictCode" id="bdistrictCode"/>
                    <input class="dec-input" name="bdistrictCodeName" id="bdistrictCodeName"/>
                </td>
            </tr>
            <tr>
                <td colspan="1" class="label">目的地代码</td>
                <td colspan="2">
                    <input type="hidden" name="bciqDestCode" id="bciqDestCode"/>
                    <input class="dec-input" name="bciqDestCodeName" id="bciqDestCodeName"/>
                </td>
            </tr>
            <tr>
                <td colspan="1" class="label">征免方式</td>
                <td colspan="2">
                    <input type="hidden" name="bdutyMode" id="bdutyMode"/>
                    <input class="dec-input" name="bdutyModeName" id="bdutyModeName" enter="no"/>
                </td>
            </tr>
            </tbody>
        </table>
        <div class="t-a-c" style="margin-top: 200px">
            <button type="button" class="layui-btn layui-btn-primary focus-select" id="batchEditConfirm">确定</button>
            <button type="button" class="layui-btn layui-btn-primary focus-select" id="batchEditCancel">取消</button>
        </div>
    </form>
</div>
<div id="reqContentArea" class="zm-hide">
    <div class="tab-normal tab-sm">
        <table class="layui-hide" id="req-content-list" lay-filter="req-content-tab"></table>
    </div>
    <form class="layui-form" id="reqContentForm" method="post" lay-filter="reqContentForm" onsubmit="return false" style="margin-top: -1px;">
        <table class="row-info info-lg">
            <tbody>
            <tr>
                <td colspan="1" class="label" style="width: 200px">境内收发货人名称(外文)</td>
                <td colspan="2">
                    <input class="dec-input" name="consigneeEname" id="consigneeEname" maxlength="100"/>
                </td>
            </tr>
            <tr>
                <td colspan="1" class="label">境外收发货人名称(中文)</td>
                <td colspan="2">
                    <input class="dec-input" name="consignorCname" id="consignorCname" maxlength="150"/>
                </td>
            </tr>
            <tr>
                <td colspan="1" class="label">境外发货人地址</td>
                <td colspan="2">
                    <input class="dec-input" name="consignorAddr" id="consignorAddr" maxlength="100" placeholder="发货人地址"/>
                </td>
            </tr>
            <tr>
                <td colspan="1" class="label">卸毕日期</td>
                <td colspan="2">
                    <input class="dec-input picker-date" name="cmplDschrgDt" id="cmplDschrgDt" placeholder="请选择日期"/>
                </td>
            </tr>
            <tr>
                <td colspan="1" class="label">商品英文名称</td>
                <td colspan="2">
                    <div class="flex">
                        <input class="dec-input disabled" name="declGoodsEnames" id="declGoodsEnames" readonly/>
                    </div>
                </td>
            </tr>
            </tbody>
        </table>
    </form>
</div>
<script type="text/html" id="applOriTemp">
    <input type="text" name="applOri" id="applOri{{d.appCertCode}}" class="layui-text tab-text" num value="{{d.applOri}}"/>
</script>
<script type="text/html" id="applCopyQuanTemp">
    <input type="text" name="applCopyQuan" id="applCopyQuan{{d.appCertCode}}" class="layui-text tab-text" num value="{{d.applCopyQuan}}"/>
</script>
<div id="goodsEnameArea" class="zm-hide">
    <div class="tab-normal mt-10">
        <table class="layui-hide" id="goods-ename-list" lay-filter="goods-ename-tab"></table>
    </div>
</div>
<script type="text/html" id="genameTemp">
    <input type="text" id="gename{{d.gno}}" class="layui-text tab-text" num value="{{removeNull(d.gename)}}" onkeyup="checklen($(this),50)"/>
</script>
<div id="goodsTargetArea" class="zm-hide">
    <form class="layui-form p-10" id="goodsTargetForm" method="post" lay-filter="goodsTargetForm" onsubmit="return false">
        <table class="row-info info-lg">
            <tbody>
            <tr>
                <td colspan="1" class="label">成分/原料/组分</td>
                <td colspan="2">
                    <input class="dec-input" name="stuff" id="wstuff" maxlength="400"/>
                </td>
            </tr>
            <tr>
                <td colspan="1" class="label">产品有效期</td>
                <td colspan="2">
                    <input class="dec-input picker-date" name="prodValidDt" placeholder="请选择日期"/>
                </td>
            </tr>
            <tr>
                <td colspan="1" class="label">产品保质期(天)</td>
                <td colspan="2">
                    <input class="dec-input" name="prodQgp" maxlength="20" NUM/>
                </td>
            </tr>
            <tr>
                <td colspan="1" class="label">境外生产企业</td>
                <td colspan="2">
                    <input class="dec-input" name="engManEntCnm" maxlength="100"/>
                </td>
            </tr>
            <tr>
                <td colspan="1" class="label">货物规格</td>
                <td colspan="2">
                    <input class="dec-input" name="goodsSpec" maxlength="100"/>
                </td>
            </tr>
            <tr>
                <td colspan="1" class="label">货物型号</td>
                <td colspan="2">
                    <input class="dec-input" name="goodsModel" maxlength="100"/>
                </td>
            </tr>
            <tr>
                <td colspan="1" class="label">货物品牌</td>
                <td colspan="2">
                    <input class="dec-input" name="goodsBrand" maxlength="100"/>
                </td>
            </tr>
            <tr>
                <td colspan="1" class="label">生产日期</td>
                <td colspan="2">
                    <input class="dec-input" name="produceDate" maxlength="2000" placeholder="yyyy-MM-dd"/>
                </td>
            </tr>
            <tr>
                <td colspan="1" class="label">生产批次</td>
                <td colspan="2">
                    <input class="dec-input" name="prodBatchNo" id="wprodBatchNo" maxlength="2000" enter="no"/>
                </td>
            </tr>
            <tr style="display: none">
                <td colspan="1" class="label">生产单位代码</td>
                <td colspan="2">
                    <input class="dec-input" name="mnufctrRegNo" id="wmnufctrRegNo" maxlength="20" enter="no"/>
                </td>
            </tr>
            </tbody>
        </table>
    </form>
</div>
<div id="goodsLicenceArea" class="zm-hide">
    <form class="layui-form" id="goodsLicenceForm" method="post" lay-filter="goodsLicenceForm" onsubmit="return false">
        <table class="row-info info-lg">
            <tbody>
            <tr>
                <td colspan="1" class="label">商品编码</td>
                <td colspan="2">
                    <input class="dec-input disabled" id="glcodeTs" readonly/>
                </td>
                <td colspan="1" class="label">商品名称</td>
                <td colspan="2">
                    <input class="dec-input disabled" id="glgname" readonly/>
                </td>
                <td colspan="1" class="label">检验检疫名称</td>
                <td colspan="2">
                    <input class="dec-input disabled" id="glciqName" readonly/>
                </td>
            </tr>
            <tr>
                <td colspan="1" class="label">序号</td>
                <td colspan="2">
                    <input class="dec-input disabled" name="goodsLicenceSeqNo" id="goodsLicenceSeqNo" readonly/>
                </td>
                <td colspan="1" class="label">许可证类别</td>
                <td colspan="2">
                    <input type="hidden" name="licTypeCode" id="licTypeCode"/>
                    <input class="dec-input required" name="licTypeName" id="licTypeName"/>
                </td>
                <td colspan="1" class="label">许可证编号</td>
                <td colspan="2">
                    <input class="dec-input required" name="licenceNo" id="licenceNo" maxlength="40"/>
                </td>
            </tr>
            <tr>
                <td colspan="1" class="label">核销货物序号</td>
                <td colspan="2">
                    <input class="dec-input" name="licWrtofDetailNo" id="licWrtofDetailNo" NUM maxlength="4"/>
                </td>
                <td colspan="1" class="label">核销数量</td>
                <td colspan="2">
                    <input class="dec-input" name="licWrtofQty" id="licWrtofQty" NUM="5" maxlength="20"/>
                </td>
                <td colspan="1" class="label">核销数量单位</td>
                <td colspan="2">
                    <input type="hidden" name="licWrtofUnit" id="licWrtofUnit"/>
                    <input class="dec-input" name="licWrtofUnitName" id="licWrtofUnitName" enter="no"/>
                </td>
            </tr>
            </tbody>
        </table>
    </form>
    <div class="layui-btn-group" style="padding: 4px;">
        <button type="button" class="layui-btn layui-btn-primary layui-btn-xs" id="addGLBtn">新增</button>
        <button type="button" class="layui-btn layui-btn-primary layui-btn-xs" id="saveGLBtn">保存</button>
        <button type="button" class="layui-btn layui-btn-primary layui-btn-xs" id="delGLBtn">删除</button>
    </div>
    <div class="tab-normal mt-10">
        <table class="layui-hide" id="goods-licence-list" lay-filter="goods-licence-tab"></table>
    </div>
</div>
<div id="bussinessPosArea" class="zm-hide">
    <div class="bp-area border-box" style="overflow: hidden;width: 698px">
        <label class="bp-btn" c="11" n="3C目录内">11-3C目录内<span class="border-box ico-ok"><i class="fa fa-check"></i></span></label>
        <label class="bp-btn" c="12" n="3C目录外">12-3C目录外<span class="border-box ico-ok"><i class="fa fa-check"></i></span></label>
        <label class="bp-btn" c="13" n="无需办理3C认证">13-无需办理3C认证<span class="border-box ico-ok"><i class="fa fa-check"></i></span></label>
        <label class="bp-btn" c="14" n="预包装">14-预包装<span class="border-box ico-ok"><i class="fa fa-check"></i></span></label>
        <label class="bp-btn" c="15" n="非预包装">15-非预包装<span class="border-box ico-ok"><i class="fa fa-check"></i></span></label>
        <label class="bp-btn" c="16" n="转基因产品">16-转基因产品<span class="border-box ico-ok"><i class="fa fa-check"></i></span></label>
        <label class="bp-btn" c="17" n="非转基因产品">17-非转基因产品<span class="border-box ico-ok"><i class="fa fa-check"></i></span></label>
        <label class="bp-btn" c="18" n="首次进出口">18-首次进出口<span class="border-box ico-ok"><i class="fa fa-check"></i></span></label>
        <label class="bp-btn" c="19" n="正常">19-正常<span class="border-box ico-ok"><i class="fa fa-check"></i></span></label>
        <label class="bp-btn" c="20" n="废品">20-废品<span class="border-box ico-ok"><i class="fa fa-check"></i></span></label>
        <label class="bp-btn" c="21" n="旧品">21-旧品<span class="border-box ico-ok"><i class="fa fa-check"></i></span></label>
        <label class="bp-btn" c="22" n="成套设备">22-成套设备<span class="border-box ico-ok"><i class="fa fa-check"></i></span></label>
        <label class="bp-btn" c="23" n="带皮木材/板材">23-带皮木材/板材<span class="border-box ico-ok"><i class="fa fa-check"></i></span></label>
        <label class="bp-btn" c="24" n="不带皮木材/板材">24-不带皮木材/板材<span class="border-box ico-ok"><i class="fa fa-check"></i></span></label>
        <label class="bp-btn" c="25" n="A级特殊物品">25-A级特殊物品<span class="border-box ico-ok"><i class="fa fa-check"></i></span></label>
        <label class="bp-btn" c="26" n="B级特殊物品">26-B级特殊物品<span class="border-box ico-ok"><i class="fa fa-check"></i></span></label>
        <label class="bp-btn" c="27" n="C级特殊物品">27-C级特殊物品<span class="border-box ico-ok"><i class="fa fa-check"></i></span></label>
        <label class="bp-btn" c="28" n="D级特殊物品">28-D级特殊物品<span class="border-box ico-ok"><i class="fa fa-check"></i></span></label>
        <label class="bp-btn" c="29" n="V/W非特殊物品">29-V/W非特殊物品<span class="border-box ico-ok"><i class="fa fa-check"></i></span></label>
        <label class="bp-btn" c="30" n="市场采购">30-市场采购<span class="border-box ico-ok"><i class="fa fa-check"></i></span></label>
        <label class="bp-btn" c="31" n="散装危险化学品">31-散装危险化学品<span class="border-box ico-ok"><i class="fa fa-check"></i></span></label>
        <label class="bp-btn" c="32" n="件装危险化学品">32-件装危险化学品<span class="border-box ico-ok"><i class="fa fa-check"></i></span></label>
        <label class="bp-btn" c="33" n="非危险化学品">33-非危险化学品<span class="border-box ico-ok"><i class="fa fa-check"></i></span></label>
    </div>
    <div class="t-a-c" style="margin-top: 20px">
        <button type="button" class="layui-btn layui-btn-primary focus-select" id="bussinessPosConfirm">确定</button>
        <button type="button" class="layui-btn layui-btn-primary focus-select" id="bussinessPosCancel">取消</button>
    </div>
</div>
<div id="dangerArea" class="zm-hide">
    <form class="layui-form p-10" id="dangerForm" method="post" lay-filter="dangerForm" onsubmit="return false">
        <table class="row-info info-lg">
            <tbody>
            <tr>
                <td colspan="1" class="label">非危险化学品</td>
                <td colspan="2">
                    <input type="hidden" name="noDangFlag" id="dnoDangFlag"/>
                    <input class="dec-input" name="noDangFlagName" id="dnoDangFlagName"/>
                </td>
            </tr>
            <tr>
                <td colspan="1" class="label">UN编码</td>
                <td colspan="2">
                    <input class="dec-input" name="unCode" maxlength="20"/>
                </td>
            </tr>
            <tr>
                <td colspan="1" class="label">危险货物名称</td>
                <td colspan="2">
                    <input class="dec-input" name="dangName" maxlength="80"/>
                </td>
            </tr>
            <tr>
                <td colspan="1" class="label">危包类别</td>
                <td colspan="2">
                    <input type="hidden" name="packType" id="dpackType"/>
                    <input class="dec-input" name="packTypeName" id="dpackTypeName"/>
                </td>
            </tr>
            <tr>
                <td colspan="1" class="label">危包规格</td>
                <td colspan="2">
                    <input class="dec-input" name="packSpec" id="dpackSpec" maxlength="24" enter="no"/>
                </td>
            </tr>
            </tbody>
        </table>
    </form>
</div>
<div id="reminder" class="reminder"></div>
<script type="text/html" id="elementTemp">
    <table class="row-info info-lg first-lg">
        <tbody>
        {{# layui.each(d,function(i,o){ }}
        <tr>
            <td colspan="1" class="label" title="{{o.name}}">{{o.name}}</td>
            <td colspan="2">
                <input class="dec-input" name="elementVal" value="{{layui.com.removeNull(o.val)}}" readonly/>
            </td>
        </tr>
        {{# });}}
        </tbody>
    </table>
</script>
<script type="text/html" id="docOperationTemp">
    <a href="javascript:" class="def-a" lay-event="docDel">删除</a>
</script>
<script type="text/html" id="previewTemp">
    <a href="/declare/docFile/preview/{{d.id}}" target="_blank" class="blue-a">{{layui.com.removeNull(d.name)}}</a>
</script>
<script type="text/html" id="cscTemp">
    {{# if(d.csc!=null){ }}
    <span class="format-csc">{{d.csc}}</span>
    {{# }}}
</script>
<script>
    layui.use('trustDecDetail', layui.factory('trustDecDetail'));
</script>